package books4all

import grails.plugins.springsecurity.Secured

@Secured(['ROLE_ADMIN'])
class SecureController {
	@Secured(["authentication.name == 'admin'"])
	def index = {
		render 'Secure access only'
	}
	
	@Secured(["authentication.name == 'admin'"]) 
	def someOtherAction = {
		render 'hophophop'
	}
}